package org.spring.learn.demo.annotation.injections.resource;

import org.junit.Test;
import org.spring.learn.project.service.MyService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MyTest {

    @Test
    public void test() {

        ApplicationContext app = new AnnotationConfigApplicationContext(MyConfig.class);

        MyService service = app.getBean(MyService.class);
        System.out.println(service);

    }
}
